package com.ruoyi.quality.mapper;

import java.util.List;

import com.ruoyi.quality.domain.TIndexData2;
import com.ruoyi.quality.domain.TQualityFileItem;
import com.ruoyi.safe.domain.BizProjectCheckRecord;
import io.lettuce.core.dynamic.annotation.Param;
import org.springframework.security.core.parameters.P;

/**
 * 质量问题拆分明细Mapper接口
 * 
 * @author mahl2
 * @date 2024-02-05
 */
public interface TQualityFileItemMapper 
{
    /**
     * 查询质量问题拆分明细
     * 
     * @param id 质量问题拆分明细主键
     * @return 质量问题拆分明细
     */
    public TQualityFileItem selectTQualityFileItemById(TQualityFileItem tQualityFileItem);

    /**
     * 查询质量问题拆分明细列表
     * 
     * @param tQualityFileItem 质量问题拆分明细
     * @return 质量问题拆分明细集合
     */
    public List<TQualityFileItem> selectTQualityFileItemList(TQualityFileItem tQualityFileItem);

    /**
     * 查询质量问题我的待办列表
     *
     * @param tQualityFileItem 质量问题我的待办列表
     * @return 质量问题我的待办列表集合
     */
    public List<TQualityFileItem> selectCheckLedger(TQualityFileItem tQualityFileItem);

    /**
     * 查询质量问题我的审核列表
     *
     * @param tQualityFileItem 质量问题我的审核列表
     * @return 质量问题我的审核列表
     */
    public List<TQualityFileItem> selectExtensionLedger(TQualityFileItem tQualityFileItem);

    /**
     * 新增质量问题拆分明细
     * 
     * @param tQualityFileItem 质量问题拆分明细
     * @return 结果
     */
    public int insertTQualityFileItem(TQualityFileItem tQualityFileItem);

    /**
     * 修改质量问题拆分明细
     * 
     * @param tQualityFileItem 质量问题拆分明细
     * @return 结果
     */
    public int updateTQualityFileItem(TQualityFileItem tQualityFileItem);

    /**
     * 删除质量问题拆分明细
     * 
     * @param id 质量问题拆分明细主键
     * @return 结果
     */
    public int deleteTQualityFileItemById(Long id);

    /**
     * 批量删除质量问题拆分明细
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTQualityFileItemByIds(Long[] ids);

    List<TQualityFileItem> qualityList(@Param("projectId") Long projectId, @Param("bizProjectCheckIds") List<Long> bizProjectCheckIds);

    List<TQualityFileItem> selectTQualityFileItemByIds(Long[] toArray);

    TIndexData2 getQuestionInfo(@Param("projectId") Long projectId);
}
